import java.util.Scanner;
public class Caculate {
    public static void main(String[] args) {
        kd.MyDC a = new kd.MyDC();
        kd.MyBC b = new kd.MyBC();
        String str;
        int result;
        System.out.println("输入算式：");
        Scanner reader = new Scanner(System.in);
        str = reader.nextLine();
        str = b.result(str);
        result = a.evaluate(str);
        System.out.println("答案为："+result);
    }
}